param:
  image_name: 
  image_latest_tag: latest
  jar_name: 

pipeline:
  name: 构建建木springboot demo docker镜像
  ref: jianmu_springboot_demo_image_builder
  description: 构建建木springboot demo docker镜像
  git_clone:
    type: git_clone:1.0.0
    param:
      remote_url: 
      ref: refs/heads/master
      netrc_username:  
      netrc_password: 
      netrc_machine: 
      ssh_key: 
  maven_build:
    type: maven_build:1.0.0-jdk8
    param:
      mvn_action: install
      workspace: ${git_clone.git_path}
      nexus_username: 
      nexus_password: 
      maven_snapshot_id: 
      maven_snapshot_url: 
      maven_release_id: 
      maven_release_url: 
      docker_username: 
      docker_password: 
      image_name: 
      image_tag: latest
  image_build:
    type: docker_image_build:1.0.0
    param:
      docker_username: 
      docker_password: 
      image_name: ${global.image_name}
      image_tag: ${global.image_latest_tag}
      docker_file: Dockerfile
      docker_build_path: .
      workspace: ${git_clone.git_path}
      cmd_pre: cp -r ${git_clone.git_path}/target/${global.jar_name}  ${git_clone.git_path}